//package footprint.kwlee.app.db;
//
//
//import android.content.ContentValues;
//import android.content.Context;
//import android.database.Cursor;
//import android.database.SQLException;
//import android.database.sqlite.SQLiteDatabase;
//
//public class DBHandler {
//    private DBHelper helper;
//    private SQLiteDatabase db;
//    private static final String TNAME = "bigfootprint";
//    private static final String TNAME2 = "detailfootprint";
//    
//    private DBHandler(Context ctx) {
//        this.helper = new DBHelper(ctx);
//        this.db = helper.getWritableDatabase();
//    }
//
//    public static DBHandler open(Context ctx) throws SQLException {
//        DBHandler handler = new DBHandler(ctx);        
//
//        return handler;    
//    }
//    
//    public void close() {
//        helper.close();
//    }
//
//    public void bigfootprint_insert() {
//    	String big_enddate = null;
//		String big_subject = null;
//		String big_startdate = null;
//		String temp1 = null;
//		String temp2 = null;
//		String sql = "insert into "+TNAME+"(big_subject, big_startdate, big_enddate, temp1, temp2) " +
//    			"values("+ big_subject +", "+ big_startdate +", "+ big_enddate +", "+ temp1 +", "+ temp2 +")";
//    	try{
//    		db.execSQL(sql);
//    	}catch(SQLException se){}
//    } 
//
////    public Cursor select(int id) throws SQLException {        
////        Cursor cursor = db.query(true, "cars", 
////                                new String[] {"_id", "car_name"},
////                                "_id" + "=" + id, 
////                                null, null, null, null, null);        
////        if (cursor != null) { cursor.moveToFirst(); }        
////
////        return cursor;
////    }
//}
